<h1><%= title %></h1>
<p>Welcome to <%= title %></p>
<p>This is an example of an embedded chat window added to any site. <a href='#' id='chat'>Chat with us</a></p>
<div id="floater" style="position: absolute; right: 0; top:0; width: 300px; height: 100%;"></div>
<script>
  $(document).ready(function() {
    $('#chat').click(function(e) {
      e.preventDefault();
      $('#floater').css("border-left", "1px solid #000").append('<iframe style="width: 300px; border: 0;" sandbox="allow-same-origin allow-forms allow-scripts" src="http://localhost:8080/chat"></iframe>');
    });
  });
</script>